﻿using System;
using System.ComponentModel;
using Abp.Application.Services.Dto;
using Abp.AutoMapper;
using LeadThing.AbpZeroTemplate.FireFightingWorks;
using static LeadThing.AbpZeroTemplate.Configuration.AppSettings;

namespace LeadThing.AbpZeroTemplate.FireFightingWorks.Dtos
{
    /// <summary>
    /// 消防工作列表Dto
    /// </summary>
    [AutoMapFrom(typeof(FireFightingWork))]
    public class FireFightingWorkAPPListDto : EntityDto<long>
    {
        /// <summary>
        /// 标题
        /// </summary>
        [DisplayName("标题")]
        public string Title { get; set; }
        private string _CreationTime;
        /// <summary>
        /// 创建时间
        /// </summary>
        [DisplayName("创建时间")]
        public string CreationTime
        {
            get
            {
                return _CreationTime;
            }
            set
            {
                _CreationTime = AppSetting.ConvertIntDatetime(Convert.ToDateTime(value)).ToString();
            }
        }
    }
}
